package com.demo9;

/**
 * Created by Administrator on 2017/3/28.
 */
public class XianCheng4 implements Runnable {
    public void run() {
        for (int count = 1, row = 1; row < 10; row++, count++) {
            for (int i = 0; i < count; i++) {
                System.out.print("*");
            }
            System.out.println();
        }
    }

    public static void main(String[] args) {
        Runnable rb = new XianCheng4();
        Thread td = new Thread(rb);
        td.start();
    }
}
